package p270jp.pxv.android.commonObjects.model;

import android.support.p024v4.media.C0261e;
import p325m0.C4721b;
import p325m0.MutabilityOwnership;
import p389ob.SerializedName;

/* compiled from: NotificationSettingMethod.kt */
/* renamed from: jp.pxv.android.commonObjects.model.NotificationSettingMethod */
/* loaded from: classes2.dex */
public final class NotificationSettingMethod {
    @SerializedName("enabled")
    private final boolean enabled;
    @SerializedName("id")

    /* renamed from: id */
    private final int f18964id;
    @SerializedName("method")
    private final MethodName method;

    /* compiled from: NotificationSettingMethod.kt */
    /* renamed from: jp.pxv.android.commonObjects.model.NotificationSettingMethod$MethodName */
    /* loaded from: classes2.dex */
    public enum MethodName {
        SCREEN("screen"),
        PUSH("push");
        
        private final String value;

        MethodName(String str) {
            this.value = str;
        }

        public final String getValue() {
            return this.value;
        }
    }

    public NotificationSettingMethod(MethodName methodName, int i, boolean z) {
        MutabilityOwnership.m3745m(methodName, "method");
        this.method = methodName;
        this.f18964id = i;
        this.enabled = z;
    }

    public static /* synthetic */ NotificationSettingMethod copy$default(NotificationSettingMethod notificationSettingMethod, MethodName methodName, int i, boolean z, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            methodName = notificationSettingMethod.method;
        }
        if ((i2 & 2) != 0) {
            i = notificationSettingMethod.f18964id;
        }
        if ((i2 & 4) != 0) {
            z = notificationSettingMethod.enabled;
        }
        return notificationSettingMethod.copy(methodName, i, z);
    }

    public final MethodName component1() {
        return this.method;
    }

    public final int component2() {
        return this.f18964id;
    }

    public final boolean component3() {
        return this.enabled;
    }

    public final NotificationSettingMethod copy(MethodName methodName, int i, boolean z) {
        MutabilityOwnership.m3745m(methodName, "method");
        return new NotificationSettingMethod(methodName, i, z);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof NotificationSettingMethod)) {
            return false;
        }
        NotificationSettingMethod notificationSettingMethod = (NotificationSettingMethod) obj;
        return this.method == notificationSettingMethod.method && this.f18964id == notificationSettingMethod.f18964id && this.enabled == notificationSettingMethod.enabled;
    }

    public final boolean getEnabled() {
        return this.enabled;
    }

    public final int getId() {
        return this.f18964id;
    }

    public final MethodName getMethod() {
        return this.method;
    }

    public int hashCode() {
        int hashCode = ((this.method.hashCode() * 31) + this.f18964id) * 31;
        boolean z = this.enabled;
        if (z) {
            z = true;
        }
        int i = z ? 1 : 0;
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        return hashCode + i;
    }

    public String toString() {
        StringBuilder c = C0261e.m12042c("NotificationSettingMethod(method=");
        c.append(this.method);
        c.append(", id=");
        c.append(this.f18964id);
        c.append(", enabled=");
        return C4721b.m3753a(c, this.enabled, ')');
    }
}
